package com.htht.smartschool.util.log;

import java.text.SimpleDateFormat;
import java.util.Date;

public class ConsoleLog implements ILog {

	SimpleDateFormat format=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); 
	@Override
	public void log(String usercode, LogType type, String content) {
		 
		Date dt=new Date();
		System.out.print(String.format("%1$s : %2$s : %3$s : %4$s\n", format.format(dt),usercode,type,content));
	}

	@Override
	public void log(String content) {
		 
		log("system",LogType.common,content);
	}

}
